package com.rx.core.enm;

import com.rx.core.base.RxResultCode;

/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @version V1.0
 * @Title: RESULT_CODE
 * @Package com.rx.core.enm
 * @Description: 返回码
 * @author: 陈锦韬
 * @date: 2020\4\19 0019
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
public enum RESULT_CODE implements RxResultCode {
    /**
     * 返回成功
     */
    OK("000000","操作成功"),
    FAIL("000001","操作失败"),
    WARN("000002","警告"),
    EXCP("000003","操作异常"),
    NULL("000005","空指针"),
    LOGIN_ERR("000006","用户名或密码错误"),
    EMPTY("000007","%s不能为空"),
    MESSAGE("000008","%s"),
    DENIED("000009","无权访问，%s"),


    EXP_JSON("100004","转换JSON错误"),
    EXP_SERVICE("100005","小服务模块缺失"),
    EXP_VO("100006","VO创建失败"),
    EXP_SQL_NO_OPER("100007","数据库操作无指定"),
    ERR_SQL_OPER("100008","数据库操作失败:%s"),
    ERR_REMOTE_CALL("100009","远程调用失败"),
    LOG_OUT("100100","尚未登录"),



    ERR_VER("010001","数据库版本错误");

    private String code;
    private String desc;
    private RESULT_CODE(String code,String desc){
        this.code = code;
        this.desc = desc;
    }
    @Override
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    @Override
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
}
